<p class="TitleSix">Search by county</p>
<?php echo $form->create('Search',array('controller'=>'searches','action' => 'results','type'=>'get'));?> 
    <select class="searchOne" name="countryId" class="selectboxInput">
        <?php
              $temp ='';
              foreach ($GLOBALS['Counties'] as $group=>$countries)
              {
                   if($group != $temp)
                   {
                        echo  '<optgroup label="'.$group.'">'  ;
                   }
                   foreach ($countries as $k=>$country) 
                   {
                        echo  ' <option value="'.$k.'">'.$country.'</option>'   ;
                   }
                   
                   $temp = $group;
              }

        
        ?>
    </select>
    <br>
    <input type="submit" name="submit" class="subBtn" value="Search"/>
<?php echo $form->end(); ?>
<br>
<p class="TitleSix">Search your local area</p>
<?php echo $form->create('Search',array('controller'=>'searches','action' => 'results','type'=>'get'));?> 
    <select class="searchOne" name="radius" class="selectboxInput">
      <?php 
         foreach ($GLOBALS['Radius'] as $k=>$radius)
          {
            echo  ' <option value="'.$k.'">Within '.$radius.' miles</option>'   ;
          }
      ?> 
    </select><br>
    <input type="submit" name="submit" class="subBtn" value="Search"/>
<?php echo $form->end(); ?>
<br>